<?php echo $header; ?><?php echo $column_left; ?>
<div class="d4-col-right right">
			<?php echo $menu_content;?>
						
			<div class="padder">
				<div class="page-head">
					<h3>Danh sách đơn hàng của bạn</h3>
				</div>
				<table cellspacing="0" class="data-table" id="my-orders-table" style="font-size:12px;">
					<thead>
						<tr class="first last">
							<th>STT</th>
							<th>Chi tiết</th>
							<th>Ngày đặt hàng</th>
							<th>Tình trạng</th>
							<th>&nbsp;</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($orders as $order) { ?>
						<tr class="first last even">
							<td><?php echo $order['stt'];?></td>
							<td><span class="nobr">Đơn hàng số #<?php echo $order['order_id'];?></span></td>
							<td><span class="price"><?php echo $order['date_added']; ?></span></td>
							<td><em><?php echo $order['status']; ?></em></td>
							<td>
								<a href="<?php echo str_replace('&', '&amp;', $order['href']); ?>">Xem chi tiết</a>
							</td>
						</tr>
						<?php }?>
					</tbody>
				</table>
				<script type="text/javascript">decorateTable('my-orders-table')</script>
				<br/>
				<p class="amount">
					<?php echo $pagination;?>
				</p>
			</div>
			
			<div class="padder">    
				<div class="button-set">
					<a href="index.php?route=account/account" class="f-left">« Trở lại trang tài khoản</a>
				</div>
			</div>		
		</div>
	</div>
<?php echo $footer; ?> 